
#pragma once

#include "base_type.h"
#include "base_ini.h"
#include "socks5.h"

#define SECTION_PROXY   _T("PROXY")
#define KEY_DOMAIN      _T("domain")
#define KEY_SERVER      _T("server")
#define KEY_PORT        _T("port")
#define KEY_USERNAME    _T("username")
#define KEY_PASSWORD    _T("password")
#define KEY_VERSION     _T("version")
#define KEY_USE         _T("use")


class CProxySetting
{
public:
    CProxySetting();

    ~CProxySetting();

    bool Load(CBaseIni * pIni);

    bool Save(CBaseIni * pIni);

public:
    string_t m_strServer;
    string_t m_strDomain;
    string_t m_strUserName;
    string_t m_strPassword;
    uint16   m_nPort;
    uint8    m_nVersion;
    bool     m_bIsUse;
};